Install gdk tests
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 May 2013 04:14:18 +0000 (00:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 May 2013 04:14:18 +0000 (00:14 -0400)
gdk/tests/Makefile.am
gdk/tests/display.test.in [new file with mode: 0644]
gdk/tests/encoding.test.in [new file with mode: 0644]
gdk/tests/keysyms.test.in [new file with mode: 0644]
gdk/tests/rgba.test.in [new file with mode: 0644]

index 49a7dca6ca16c4378ef63e3c1ffbc3ccd9b52a6f..bd9a3b392fac6cfaae54b2a4ad57408acc6b2ea0 100644 (file)
@@ -39,4 +39,30 @@ CLEANFILES = \
        cairosurface.png        \
        gdksurface.png
 
+if BUILDOPT_INSTALL_TESTS
+insttestdir=$(pkglibexecdir)/installed-tests
+insttest_PROGRAMS = $(TEST_PROGS)
+
+substitutions = \
+       -e s,@pkglibexecdir\@,$(pkglibexecdir),g \
+       $(NULL)
+
+test_in_files = \
+       rgba.test.in \
+       encoding.test.in \
+       display.test.in \
+       keysyms.test.in \
+       $(NULL)
+
+test_files = $(test_in_files:.test.in=.test)
+
+$(test_files): %.test: %.test.in
+       $(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@
+
+EXTRA_DIST += $(test_in_files)
+
+testmetadir = $(datadir)/installed-tests/$(PACKAGE)
+testmeta_DATA = $(test_files)
+endif
+
 -include $(top_srcdir)/git.mk
diff --git a/gdk/tests/display.test.in b/gdk/tests/display.test.in
new file mode 100644 (file)
index 0000000..9875c68
--- /dev/null
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/display"
+Type=session
diff --git a/gdk/tests/encoding.test.in b/gdk/tests/encoding.test.in
new file mode 100644 (file)
index 0000000..06a329d
--- /dev/null
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/encoding"
+Type=session
diff --git a/gdk/tests/keysyms.test.in b/gdk/tests/keysyms.test.in
new file mode 100644 (file)
index 0000000..2f1ce97
--- /dev/null
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/keysyms"
+Type=session
diff --git a/gdk/tests/rgba.test.in b/gdk/tests/rgba.test.in
new file mode 100644 (file)
index 0000000..5fd3155
--- /dev/null
@@ -0,0 +1,3 @@
+[Test]
+Exec=/bin/sh -c "@pkglibexecdir@/installed-tests/rgba"
+Type=session